home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / BaseTabbedPanelBeanInfo.java < prev    next >
Text File  |  1998-08-21  |  1KB  |  49 lines

  1. package symantec.itools.awt;
  2.  
  3. import java.beans.*;
  4. import symantec.itools.beans.*;
  5.  
  6. /**
  7.  * BeanInfo for BaseTabbedPanel.
  8.  *
  9.  */
  10.  
  11. public class BaseTabbedPanelBeanInfo extends SimpleBeanInfo {
  12.  
  13.     /**
  14.      * Constructs a BaseTabbedPanelBeanInfo object.
  15.      */
  16.     public BaseTabbedPanelBeanInfo() {
  17.     }
  18.  
  19.     /**
  20.      * Gets a BeanInfo for the superclass of this bean.
  21.      * @return BeanInfo[] containing this bean's superclass BeanInfo
  22.      */
  23.     public BeanInfo[] getAdditionalBeanInfo() {
  24.         try {
  25.             BeanInfo[] bi = new BeanInfo[1];
  26.             bi[0] = Introspector.getBeanInfo(beanClass.getSuperclass());
  27.             return bi;
  28.         }
  29.         catch (IntrospectionException e) { throw new Error(e.toString());}
  30.     }
  31.  
  32.     /**
  33.      * Gets the SymantecBeanDescriptor for this bean.
  34.      * @return an object of type SymantecBeanDescriptor
  35.      * @see symantec.itools.beans.SymantecBeanDescriptor
  36.      */
  37.     public BeanDescriptor getBeanDescriptor() {
  38.         SymantecBeanDescriptor bd = new SymantecBeanDescriptor(beanClass);
  39.  
  40.         return (BeanDescriptor) bd;
  41.     }
  42.  
  43.     public MethodDescriptor[] getMethodDescriptors() { return new MethodDescriptor[0]; }
  44.  
  45.     public PropertyDescriptor[] getPropertyDescriptors() { return new PropertyDescriptor[0]; }
  46.  
  47.     private final static Class beanClass = BaseTabbedPanel.class;
  48.  
  49.     }    //  end of class BaseTabbedPanelBeanInfo